from django.conf.urls import patterns, url
from theblog import views

urlpatterns = patterns('theblog.views',
	url(r'^theblog/$', 'home'),
	url(r'^newblog/$', 'createNewBlog'),
	url(r'^theblog/submit/$', 'saveBlog'),
	url(r'^blogit/$', 'login_user'),
	url(r'^blogit/viewblog/viewBlog(?P<blogname>\w+)/$','viewBlog'),
	url(r'^register/$', 'register'),
	url(r'^register/submit/$','registration'),
	#url(r'^resetpassword/$', 'theblog.views.reset_pwd'),
	url(r'^logout/$', 'logout_user'),
	url(r'^admin/', include(admin.site.urls)),
)
